<%--
*
* 描述：操作提示
*
--%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="com.sky.common.string.StringUtils"/>
<jsp:directive.page import="com.sky.common.http.HTTPUtils"/>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%
   String tip=StringUtils.isEmpty(request.getParameter("tip"))?"":request.getParameter("tip");//操作提示信息
   tip=StringUtils.isEmpty(tip)?"操作成功!":HTTPUtils.unescape(tip);//解码
   String returnURL=StringUtils.isEmpty(request.getParameter("returnURL"))?"":request.getParameter("returnURL");//返回地址参数
   returnURL=returnURL.replaceAll("@","&");//url传递之前先编码，接收后再解码
   String close=StringUtils.isEmpty(request.getParameter("close"))?"false":request.getParameter("close");//是否显示关闭按钮
   String refresh=StringUtils.isEmpty(request.getParameter("refresh"))?"true":request.getParameter("refresh");//是否自动跳转
%>
<head>
	<title>操作提示</title>
	<%@include file="/share/header.jsp"%>
	<s:head/>
	<%if("true".equalsIgnoreCase(refresh)&&!StringUtils.isEmpty(returnURL)){ %>
    <META HTTP-EQUIV="Refresh" CONTENT="3;URL=<%=path+returnURL%>">
    <%} %>
	<link href="<%=path%>/main/dsnc/css/errorPage.min.css" rel="stylesheet" type="text/css" />
	<link href="<%=path%>/main/dsnc/css/common.min.css" rel="stylesheet" type="text/css">
</head>
<body>
	<div class="errorMed">
	  <div class="errorType"><img src="<%=path%>/main/dsnc/image/title_operation_tips.png" width="78" height="28" /></div>
	  <div class="errorIcon"><img src="<%=path%>/main/dsnc/image/icon_operation_tips.png" width="128" height="128" /></div>
	  <div class="errorContant">
	    <table width="100%" border="0" cellspacing="0" cellpadding="0">
	    <tr>
	      <td height="100" align="left" valign="top"><%=tip%><%if("true".equalsIgnoreCase(refresh)&&!StringUtils.isEmpty(returnURL)){ %><br>3秒后系统自动跳转...<%} %></td>
	      </tr>
	    <tr>
	      <td height="50">
	        <table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
	          <tr>
	          	<%if(!StringUtils.isEmpty(returnURL)){ %>
	            <td><div class="btnGreen" onMouseOver="this.className='btnGreenHover'" onMouseOut="this.className='btnGreen'" onMouseDown="this.className='btnGreenClick'" onMouseUp="this.className='btnGreenHover'" onclick="document.location.replace('<%=path+returnURL%>')">返回页面</div></td>
	            <%} %>
	            <%if("true".equalsIgnoreCase(close)){ %>
	            <td><div class="btnGreen" onMouseOver="this.className='btnGreenHover'" onMouseOut="this.className='btnGreen'" onMouseDown="this.className='btnGreenClick'" onMouseUp="this.className='btnGreenHover'" onclick="closeWindow(top)">关闭页面</div></td>
	            <%} %>
	          </tr>
	        </table>
	        </td>
	      </tr>
	  </table>
	  </div>
	</div>	
</body>
</html>
